import numpy as np


def load_txt(file, delimiter='\t'):
    with open(file, 'r') as f:
        info = f.readlines()

    info_arr = [data.strip()[: -1].split(delimiter) for data in info]
    info_arr = [list(map(int, data)) for data in info_arr]

    return np.mat(info_arr)
